<template>
  <div id="app">
    <!-- keep-alive是vue自带的标签，访问一次页面后，将数据存入内存，重新访问该页面将不用重新进行ajax请求 -->
    <!-- exclude是对某个页面取消缓存的意思 -->
    <keep-alive exclude="Detail">
      <router-view></router-view>
    </keep-alive>
  </div>
</template>

<script>
export default {
  name: "App",
};
</script>

<style>
/* #app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
} */
</style>
